<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script type="text/javascript" src="/ajax-day01/js/ajax.js"></script>
    <script type="text/javascript" src="/ajax-day01/js/vue-2.6.12.js"></script>
</head>
<body>
    <div id="app">
        <form action="" @submit.prevent="login">
            用户名：<input type="text" v-model="username"><span id="msg" style="color: red">{{msg}}</span><br>
            密码：<input type="password" v-model="password"><br>
            <input type="submit" value="登录">
        </form>
    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data:{
                username:"",
                password:"",
                msg:""
            },
            methods:{
                login(){

                }
            }
        })
    </script>
</body>
</html>